#ifndef STR_UTILS_HPP
#define STR_UTILS_HPP

#include "config.h"
#include <string>

#include <algorithm> 
#include <cctype>
// #include <locale>

// trim from start (in place)
DIARY_APP_SDK_API
void trim_left(std::string& s);

// trim from end (in place)
DIARY_APP_SDK_API
void trim_right(std::string& s);

// trim from both ends (in place)
DIARY_APP_SDK_API
void trim(std::string& s);

// trim from start (copying)
DIARY_APP_SDK_API
std::string trim_left_copy(std::string s);

// trim from end (copying)
DIARY_APP_SDK_API
std::string trim_right_copy(std::string s);

// trim from both ends (copying)
DIARY_APP_SDK_API
std::string trim_copy(std::string s);

#endif /* STR_UTILS_HPP */
